package com.example.base.net

import com.example.base.entity.LoginBean
import com.example.base.entity.NoticeBean
import com.example.base.entity.Res
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @POST("/api/user/login")
    suspend fun login(@Query("username") username: String, @Query("password") password: String): Res<LoginBean>
    @GET("/api/announcements")
    suspend fun getNotice(@Query("page")page :Int,@Query("size")size:Int): Res<NoticeBean>
}